﻿using BCAMap.AMap.Http;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCAMap.AMap.Dto
{
    /// <summary>
    /// Http请求处理
    /// </summary>
    public class HttpRequestDto
    {
        /// <summary>
        /// 请求头部信息
        /// </summary>
        public Dictionary<string, string> Headers { get; set; } = new Dictionary<string, string>();
        /// <summary>
        /// 请求Url地址
        /// </summary>
        public String Url { get; set; }
        /// <summary>
        /// 请求方法
        /// </summary>
        public MethodType Method { get; set; }
        /// <summary>
        /// 请求内容格式化类型
        /// </summary>
        public FormatType? ContentType { get; set; }
        /// <summary>
        /// 请求内容
        /// </summary>
        public byte[] Content { get; set; }
        /// <summary>
        /// 请求编码类型
        /// </summary>
        public string Encoding { get; set; }
    }
}
